home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-01-21 | 2.1 KB | 73 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="7"
- "COUNT"="3"
- "UIPATH 1"="Startup/Shutdown\Startup\Windows 9x/ME\10) Boot Menu"
- "NAME"="Advanced Options (Win 98/ME)"
- "VERSION"="1.32"
- "OSVERSION"="00101"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Disable "Double Buffering""
- "TEXT 2"="Enable "Double Buffering" only if needed"
- "TEXT 3"="ALWAYS enable "Double Buffering""
- "DESCRIPTION 1"="Double Buffering doubles the default buffer size of Windows's use of the hard drive and results in enhanced performance."
- "DESCRIPTION 2"="This setting should be left alone if you are using IDE/ATA hard drive(s) as it only affects SCSI drives."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
- "COMMENT 2"="Thanks to CptSiskoX and Pierre Szwarc for their help!"
- "COMMENT 3"="Thanks to Randall Nowell [rnowell@magma.ca] for the "2 vs 1 mix-up" bug notice."
- "COMMENT 2"="Thanks to Petr Tandler [mailto:tanpe@volny.cz] for the "SCSI drives only" notice!"
-
-
- 'Declaration of some constants
- sF="C:\MSDOS.SYS"
- sO="OPTIONS"
-
- 'Called when the Plugin is started
- Sub Plugin_Initialize
- Call FileSetAttribute(sf,"S-")
- Call FileSetAttribute(sf,"R-")
- Call FileSetAttribute(sf,"H-")
-
- i=IniReadValue(sf,so,"DoubleBuffer")
- if i=0 then
- SetUIElement 1,true
- else
- if i=2 then
- SetUIElement 3,true
- else
- SetUIElement 2,true
- end if
- end if
- End Sub
-
- 'Called when the Plugin should validate the Data the user has entered
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- 'Called when the Plugin should apply the changes
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- if GetUIElement(1)=true then
- i=0
- else
- if GetUIElement(2)=true then
- i=1
- else
- i=2
- end if
- end if
-
- Call IniWriteValue(sf,so,"DoubleBuffer",i)
-
-
- Call Restart()
- End Sub
-
- 'Called when the Plugin is about to be removed from memory
- Sub Plugin_Terminate
- Call FileSetAttribute("C:\MSDOS.SYS","S+")
- Call FileSetAttribute("C:\MSDOS.SYS","R+")
- Call FileSetAttribute("C:\MSDOS.SYS","H+")
- End Sub
-